package com.evildog.workspace.log.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * exceptionLogFeign 查询参数
 * </p>
 *
 * @author evildog
 * @since 2020-08-29
 */
@Data
@Accessors(chain = true)
@ApiModel(value="ExceptionLogFeign查询参数")
public class ExceptionLogParam implements Serializable {


    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    private String applicationName;

    @ApiModelProperty(value = "body")
    private String body;

    @ApiModelProperty(value = "请求地址")
    private String uri;

    @ApiModelProperty(value = "请求方法")
    private String method;

    @ApiModelProperty(value = "user_agent")
    private String userAgent;

    @ApiModelProperty(value = "ip")
    private String ip;

    @ApiModelProperty(value = "异常名")
    private String exceptionName;

    @ApiModelProperty(value = "异常类全名")
    private String exceptionClassName;

    @ApiModelProperty(value = "异常类文件")
    private String exceptionFileName;

    @ApiModelProperty(value = "异常方法名")
    private String exceptionMethodName;

    @ApiModelProperty(value = "异常方法所在行")
    private Integer exceptionLineNumber;

    @ApiModelProperty(value = "异常栈轨迹")
    private String exceptionStackTrace;

    @ApiModelProperty(value = "异常根message")
    private String exceptionRootCauseMessage;

    @ApiModelProperty(value = "异常message")
    private String exceptionMessage;

    @ApiModelProperty(value = "异常事件")
    private LocalDateTime exceptionTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
